home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 May / Macworld (1999-05).dmg / Shareware World / Utilities / User Interface / Hippo 2.03 / Notes on AppleScripts < prev    next >
Text File  |  1998-08-26  |  5KB  |  69 lines

  1. A Note about Hippo's AppleScripts
  2.  
  3. 26 August 1998
  4.  
  5. Hippo now provides additional functionality through AppleScript.
  6.  
  7. Any AppleScript can be placed directly in Hippo's folders. Unlike a regular application, you do not need to use an alias (although this will work).
  8.  
  9. These scripts are provided as run-only 'droplets'. Registered users of Hippo are entitled to the commented source files for the scripts. Please request them in the 'comments' dialog of the 'Register' application (Press the speech bubble button by the word 'Hippo'). Alternatively email Cogco at cogco@kagi.com.
  10.  
  11. Many of these scripts need to be initialised before the become useful. The procedure is the same in each case: Make a copy of the script for each folder you want to work with. Double click on the script and use the choose folder dialog to select a destination. Rename the script to reflect the destination.
  12.  
  13. Note: In the following text, the word 'files' can generally be considered to mean 'files and/or folders'.
  14.  
  15. If you experience 'Out of Memory' errors when running these AppleScripts, you should increase the amount of memory allocated to the droplet. Select the droplet in the Finder and choose 'Get Info' from the File menu (or from the Contextual Menu !) - try increasing the preferred size in increments of 100k until you no longer get the error.
  16.  
  17. Hippo does not require that these AppleScripts be installed in its folder. You are encouraged to install only those scripts of use to you and develop your own scripts for use with Hippo.
  18.  
  19. The ability to run AppleScripts is disabled after you have opened 500 files with Hippo. Registration removes this limitation.
  20.  
  21. ?/?
  22.  
  23. This script does two things:
  24.  
  25. 1. if a single file is dropped on it, it shows the current file and creator type, which can optionally be edited. You must enter it in the form: "TYPE/CRTR" where TYPE is the four character file type and CRTR is the four character creator type.
  26.  
  27. 2. If a group of files is dropped on the script, the user is prompted to enter a new type and creator code for the files. ALL of the files will be set to this new type.
  28.  
  29. FileTyper
  30.  
  31. This script is designed to be configured outside of Hippo. The user should decide which file types s/he may wish to have available on HIppo's menu. Then make as many copies (command-d) of FileTyper as file types. Now click on each copy and select the file you want have its type and creator recorded. Now rename that copy of FileTyper to reflect the chosen file type. 
  32.  
  33. Now any files that are dropped onto the script will have their file type and creator changed to the preset type and creator
  34.  
  35. Reveal in Finder
  36.  
  37. This simply tells the Finder to open the folder containing the particular file dropped on it. It isn't much use when used in the Finder - obviously you need to be able to see the file in order to drag and drop it onto the script. However, It is very useful to be able to select a Hippo File and view the contents this way.
  38.  
  39. FileMover
  40.  
  41. When this script is double clicked, you are prompted to choose a folder in which you want files to be moved to. In future, files dropped on this script will be moved to this location. (Note, this is a Finder-like move. If the file or folder is being moved between volumes, it will actually perform a copy.) You can also choose wether you want to be warned before FileMover overwrites a file with the same name. Choosing not to warn will speed up this script by a significant amount.
  42.  
  43. Customise this script in the same manner as the FileTyper script. Remembering to change each copy's name to something sensible.
  44.  
  45. AliasMaker
  46.  
  47. This behaves exactly like the FileMover script except it makes an alias to the files in the selected location.
  48.  
  49. FileCopier
  50.  
  51. Again, this is like FileMover, except that a new copy of the file is always made at the new location leaving the old version intact.
  52.  
  53. CopyNewer & CopyOlder
  54.  
  55. These scripts copy files to the specified location so long as those files are either newer or older than the files they are replacing. If a file does not exist in the destination, it is also copied there.
  56.  
  57. CompareFiles, CompareNewer & CompareOlder
  58.  
  59. These scripts compare the files in the list with those in the pre-set folder and turn the file label to red if the modification dates are either different, newer or older (depending on the script). Note, if you are using a Hippo List, some of the files refered to may not be visible in the Finder. You may want to use the 'Reveal in Finder' script in order to ensure you spot all the relevant files.
  60.  
  61. FileDeleter
  62.  
  63. This script deletes any files from its pre-set folder that have the same name as the files dropped on it. It leaves the files dropped on it untouched.
  64.  
  65. Closing Note
  66.  
  67. Under certain circumstances, when you have two or more volumes (disks, partitions or network volumes) mounted on the desktop with the same name, Hippo and these AppleScripts may fail to work. This is a problem with the way that AppleScript and AppleEvents pass information about files. For this reason we recommend that you do not have multiple volumes with the same name. This is not a bug with Hippo, and you may also experience problems with other applications or AppleScripts not part of the Hippo package.
  68.  
  69. © Cogco International Limited 1998.